package bean;

import java.util.List;

import base.BaseBean;

public class GradeSubjectBean extends BaseBean {
    public GradeSubjectBean(List<DataBean> data) {
        this.data = data;
    }

    private int saveSubjectId = -1;
    private int saveDegreeeId = -1;

    public int getSaveSubjectId() {
        return saveSubjectId;
    }

    public void setSaveSubjectId(int saveSubjectId) {
        this.saveSubjectId = saveSubjectId;
    }

    public int getSaveDegreeeId() {
        return saveDegreeeId;
    }

    public void setSaveDegreeeId(int saveDegreeeId) {
        this.saveDegreeeId = saveDegreeeId;
    }

    @Override
    public String toString() {
        return "GradeSubjectBean{" +
                "data=" + data +
                ", code=" + code +
                ", msg='" + msg + '\'' +
//                ", time='" + time + '\'' +
                '}';
    }

    private List<DataBean> data;

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        public DataBean(int grade_id, String grade_name, List<ListBean> list) {
            this.grade_id = grade_id;
            this.grade_name = grade_name;
            this.list = list;
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "grade_id=" + grade_id +
                    ", grade_name='" + grade_name + '\'' +
                    ", list=" + list +
                    '}';
        }

        /**
         * grade_id : 1
         * grade_name : 小学
         * list : [{"subject_id":1,"subject_name":"语文","degree_id":1},{"subject_id":2,"subject_name":"数学","degree_id":1},{"subject_id":3,"subject_name":"英语","degree_id":1}]
         */

        private int grade_id;
        private String grade_name;
        private List<ListBean> list;

        public int getGrade_id() {
            return grade_id;
        }

        public void setGrade_id(int grade_id) {
            this.grade_id = grade_id;
        }

        public String getGrade_name() {
            return grade_name;
        }

        public void setGrade_name(String grade_name) {
            this.grade_name = grade_name;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean {
            public ListBean(int subject_id, String subject_name, int degree_id) {
                this.subject_id = subject_id;
                this.subject_name = subject_name;
                this.degree_id = degree_id;
            }

            @Override
            public String toString() {
                return "ListBean{" +
                        "subject_id=" + subject_id +
                        ", subject_name='" + subject_name + '\'' +
                        ", degree_id=" + degree_id +
                        '}';
            }

            /**
             * subject_id : 1
             * subject_name : 语文
             * degree_id : 1
             */

            private int subject_id;
            private String subject_name;
            private int degree_id;

            public int getSubject_id() {
                return subject_id;
            }

            public void setSubject_id(int subject_id) {
                this.subject_id = subject_id;
            }

            public String getSubject_name() {
                return subject_name;
            }

            public void setSubject_name(String subject_name) {
                this.subject_name = subject_name;
            }

            public int getDegree_id() {
                return degree_id;
            }

            public void setDegree_id(int degree_id) {
                this.degree_id = degree_id;
            }
        }
    }
}
